package com.thoughtworks.preuniversity.biblioteca;

/**
 * Created by padmavb on 6/12/14.
 */

//Job:Reads the book title which the customer want to return ,ask for library whether it is in the check out list or not.
public class ReturnBook extends MenuOperation{



    @Override

    void doCorrespondingOperation(Library library) {

        UserInterface userInterface=new UserInterface();
        userInterface.displayMessage("Enter book title to return");

        String bookToReturn=userInterface.readBookTitle();

        library.returnBook(bookToReturn);

    }

    @Override
    String giveJobOfClass() {
        return "Return";
    }
}
